<template>
<div class="layerRtb layerRtb-threecolumn">
    <three-title :title="{name:'数字类'}"></three-title>
    <div class="layerRtb-scroll thinScroll" v-scrollHeight = "0">
        <div class="analyItem">
            <p class="analyItemTit tx-center">数字</p>
            <div class="analyItemCon">
                <p class="col-md-4"><span class="cLightGray pr8">截取小数点</span><span>{{ num | toFixed(2) }}</span></p>
                <p class="col-md-4"><span class="cLightGray pr8">转换大小写</span><span>{{ num | capitalizeAmount }}</span></p>
            </div>
        </div>
        <codemd url="Lesson3/docs/number.md"></codemd>
    </div>
</div>
</template>
<script>
import codemd from '../code-md'
export default {
    components: {
        codemd
    },
    data () {
        return {
            num: 200.010203
        }
    },
    mounted () {

    },
    methods: {

    }
}
</script>
